package aole.util;

import javax.swing.JTextField;

public class IntegerField extends JTextField {

	private static final long	serialVersionUID	= 1L;

	public IntegerField() {
		super();
	}

	public IntegerField( int cols ) {
		super( cols );
	}

	public void setValue( int v ) {
		setText( "" + v );
	}

	public int getValue() {
		return Integer.parseInt( getText() );
	}
}
